package cn.com.yiqi.wsc.dao.point;

import cn.com.yiqi.wsc.dao.point.entity.PointFetch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;


@Repository
public interface PointFetchMapper {


    int deleteByPrimaryKey(Integer id);

    PointFetch selectByPrimaryKey(Integer id);
    int insert(PointFetch record);
    int updateByPrimaryKeySelective(PointFetch record);

    List<PointFetch> selectByUserId(Integer userId);

    /**普通积分兑换次数*/
    Long countTimes(@Param("from") Date dtimes, @Param("userId") Integer userId);

    Long sumTotal(@Param("from") Date dtotal, @Param("userId") Integer userId);
}